<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  lits
</body>
</html>
<script src="./js/jquery.js"></script>

<script>
  window.onload = function(){
    const url = "http://localhost:3000/api/news/list"
    $.ajax({
      url:url,
      type:"GET",
      data:{
        _page:1,
        _limit:8,
        _sort:"",
        q:"",
        token:localStorage.getItem("token"),
  
      },
      success:(data)=>{
        console.log(data)
        $("*").html(data)
      }
    })
  }
  // window.onload = function(){ func1(); func2(); func3(); }

</script>